import type { Category } from '@/types'
import { http } from '@/utils/http'
import { getBusinessApiPrefix } from '@/utils/config'

/**
 * 根据技术栈Code获取分类列表
 */
export const getCategoriesByTechCodeAPI = (techCode : string) => {
	return http<Category[]>({
		url: `${getBusinessApiPrefix()}/categories/getCategoriesByTechCodeAPI`,
		method: 'POST',
		data: { techCode },
	})
}